<?php
class m_seat extends BaseModel{
		protected $_default_table_name = 'seats';
		public $id;
		public $seat;
        public $order_id;
	}
// ALTER TABLE `rezervacia`.`seats` ADD UNIQUE `seat` (`table`, `seat`, `plan_id`)

?>